package com.sean.designpatterns.behavioral.command.iterator;

public class Main {
    public static void main(String[] args) {
        NameRepository repository = new NameRepository();
        for(Iterator it = repository.getIterator();it.hasNext();){
            System.out.println(it.next());
        }
    }
}
